<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{$videos.name}-{$C.webtitle}</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/index.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/banner.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/Adaptive.js"></script>
</head>

<body>

<include file="Public:header"/>

<div class="container" style="margin-top:0.4rem;">
    <div class="zhubo_1 js_post" >
        <div class="cover">
            <img class="img js_img" src="{$videos.img}" alt="">
        </div>
        <div class="cont">
            <h2 class="title js_title">{$videos.name}</h2>
            <p class="desc">{$videos.jianjie}</p>
        </div>
    </div>
    <div class="mx_list" >
        <h2 class="title js_title">{$videos.name}</h2>
        <video controls>
            <source src="{$videos.murl}" type="video/mp4">
            您的浏览器不支持 HTML5 video 标签。
        </video>
		<php>
		if(!empty($video_zhubo)){
		</php>
			<h2 class="title js_title">往期视频</h2>
		<php>
		}
		</php>
    </div>

    <div class="zhubo_list">
		<volist name="video_zhubo" id="video_zhubo">
			<a class="list_zhubo js_post" href="{:U('Index/videos_show',array(nid=>$video_zhubo[id]))}">
				<div class="cover">
					<img class="img js_img" src="{$video_zhubo.img}" alt="{$video_zhubo.name}">
				</div>
				<div class="cont">
					<h2 class="title js_title">{$video_zhubo.name}</h2>
					<p class="desc">{$video_zhubo.jianjie}</p>
				</div>
			</a>
		</volist>
	</div>
    <div class="mx_btn" >
		<div class="wx_btn">
			<php>
			if($user_fensi['id']){
			</php>
				<a class="wx_dz">已成为粉丝</a>
			<php>
			}else{
			</php>
				<a class="wx_dz chengfensi" href="javascript:;" id="tofensi">成为粉丝</a>
			<php>
			}
			</php>
			<input type="hidden" value="{$videos.id}" id="tvid" />
			<script type="text/javascript">
			$(function(){
				var tvid=$("#tvid").val();
				$("#tofensi").click(function(){
					$.post("{:U('User/tofensi')}",{tvid:tvid},function(msg){
						if(msg>=1){
							
							var fensinum=Number($(".fensinum").text());
							fensinum+=1;
							$(".fensinum").text(fensinum);
							$(".chengfensi").text("已成为粉丝");
						}else{
							if(msg==-1){
								alert("请先登录");
							}else if(msg==-2){
								alert("已成为粉丝");
							}
						}
					});
				});
			})
			</script>
			
			<php>
			if(!empty($_COOKIE['id'])){
			</php>
				<a href="{:U('User/baoming')}" class="wx_dz">我也要参加</a>
			<php>
			}else{
			</php>
				<a href="javascript:;" onClick="woyebaoming()" class="wx_dz">我也要参加</a>
				<script type="text/javascript">
				function woyebaoming(){
					$.post("{:U('User/getlogzt')}",{},function(msg){
						if(msg==1){
							location.href="./index.php?a=baoming&m=user";
						}else{
							alert("请先登录！");
							location.href="./index.php?a=login&m=user";
						}
					});
				}
				</script>
			<php>
			}
			</php>
			<div style="height: 1.8rem"></div>
		</div>
    </div>
</div>


<include file="Public:bottom"/>  
</body>
</html>
 
